//
//  UIButton+sizebuttFont.m
//  TH
//
//  Created by 高永杨 on 16/9/6.
//  Copyright © 2016年 zhongchuang. All rights reserved.
//
//不同设备的屏幕比例(当然倍数可以自己控制)
#define SizeScale (([UIScreen mainScreen].bounds.size.height > 565) ? [UIScreen mainScreen].bounds.size.height/565 : 1)
#import "UIButton+sizebuttFont.h"
#import <objc/runtime.h>
@implementation UIButton (sizebuttFont)

//+ (void)load{
//    Method imp = class_getInstanceMethod([self class], @selector(initWithCoder:));
//    Method myImp = class_getInstanceMethod([self class], @selector(myInitWithCoder:));
//    method_exchangeImplementations(imp, myImp);
//}
//
//- (id)myInitWithCoder:(NSCoder*)aDecode{
//    [self myInitWithCoder:aDecode];
//    if (self) {
//        //部分不像改变字体的 把tag值设置成333跳过
//        if(self.tag != 333){
//            CGFloat fontSize = self.titleLabel.font.pointSize;
//            self.titleLabel.font = [UIFont systemFontOfSize:fontSize*SizeScale];
//        }
//    }
//    return self;
//}
@end
